
import request from '@/utils/request'

// 获取列表
export const getDictList = (params: any) => {
    return request('/api/Dict', 'get', params)
}

// 添加
export const addDict = (data: any) => {
    return request('/api/Dict', 'post', data)
}

// 编辑
export const editDict = (id: any, data: any) => {
    return request("/api/Dict/{id}", 'put', data)
}

// 删除
export const deleteDict = (id: any) => {
    return request("/api/Dict/{id}", 'delete')
}
